<HTML>
<HEAD>
<link rel=stylesheet type="text/css" href="styles.css">
<TITLE>Simkin While Statement</TITLE>
</HEAD>
<BODY>

<H1>
Simkin While Statement</H1>
<hr>
<p>
This statement allows you to execute a series of other statements
until an expression is true.
<p>
The format of the statement is:
<pre>
while (&lt;test-expression&gt;) {
 &lt;statements...&gt;
}
</pre>
<p>For example:
<pre>
i=0;
while (i lt 3) {
  trace(i);
  i=i+1;
}
</pre>
will print:
<pre>
0
1
2
</pre>
Note: you have to use the braces "{" and "}" to surround the statements after the while clause.
</BODY>
</HTML>
